/*
 * 文件名：CarBillServiceImpl.java 描述： 修改人：Administrator 修改时间：2016年4月25日 跟踪单号： 修改单号： 修改内容：
 */

package com.zcsy.manage.service.property.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zcsy.manage.model.property.CarBill;
import com.zcsy.manage.model.property.CarBillDetail;
import com.zcsy.manage.persistence.property.CarBillDao;
import com.zcsy.manage.service.property.ICarBillService;

/**
 * @Title: CarBillServiceImpl.java
 * @Package： com.zcsy.manage.service.property.impl
 * @Description: 停车费账单服务层实现类
 * @author xujl
 * @Copyright: 2016 武汉中财数元信息技术有限公司 All rights reserved.
 * @date 2016年4月25日
 * @version 1.0
 * @see JDK1.7.0_75
 * @since
 */
@Service
public class CarBillServiceImpl implements ICarBillService {

    @Autowired
    private CarBillDao dao;

    @Override
    public int insert(CarBill record) {
        return dao.insert(record);
    }

    @Override
    public int updateByPrimaryKey(CarBill record) {    	
        return dao.updateByPrimaryKey(record);
    }

    @Override
    public int deleteByPrimaryKey(String id) {
        return dao.deleteByPrimaryKey(id);
    }

    @Override
    public CarBill selectByPrimaryKey(String id) {
        return dao.selectByPrimaryKey(id);
    }
    
    @Override
    public CarBill selectByCarNo(String carNo) {
        return dao.selectByCarNo(carNo);
    }
    
    
    @Override
   	public List<CarBillDetail> selectCarBillByHouseId(String userId){
   		return dao.selectCarBillByHouseId(userId);
   	}
    
    @Override
    public List<CarBill> selectCarBillByOneHouseId(String housesId){
    	return dao.selectCarBillByOneHouseId(housesId);
    }
 
    @Override
    public List<CarBill> selectByKeyword(CarBill record) {
        return dao.selectByKeyword(record);
    }
    
    @Override
    public CarBill selectByBindingCarNo(String carNo) {
        return dao.selectByBindingCarNo(carNo);
    }
    
    @Override
    public CarBill selectByUnbundingCarNo(String carNo) {
        return dao.selectByUnbundingCarNo(carNo);
    }
    
    @Override
    public int updateBindingState(String id) {
        return dao.updateBindingState(id);
    }
    
    @Override
    public int updateStateByCarNo(CarBill record) {
        return dao.updateStateByCarNo(record);
    }

    @Override
    public List<CarBill> selectCarByCellId(CarBill record) {
        return dao.selectCarByCellId(record);
    }

    @Override
    public List<CarBill> selectCarListByOwnerAndHouser(String ownerId, String houserId) {
        return dao.selectCarListByOwnerAndHouser(ownerId, houserId);
    }

	@Override
	public Integer selectByHouseIds(String[] houseIDs) {
		return dao.selectByHouseIds(houseIDs);
	}
    
}
